package com.ruoyi.qsng.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 活动信息对象 k_activity
 *
 * @author kanglou
 * @date 2023-06-07
 */
@Data
@ApiModel("活动信息对象 k_activity")
public class KActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String userId;



    /** 业务字段--活动名称 */
    @ApiModelProperty(" 业务字段--是否收藏了 0否 1是")
    private Long isCollect;

    /** 业务字段--活动名称 */
    @ApiModelProperty(" 业务字段--是否报名 0否 1是")
    private Long isApplication;

    /** 报名开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("报名开始时间")
    @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bmKssj;

    /** 报名结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("报名结束时间")
    @Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bmJssj;

    /** 开课开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开课开始时间")
    @Excel(name = "开课开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date kkKksj;

    /** 开课结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开课结束时间")
    @Excel(name = "开课结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date kkJssj;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @ApiModelProperty("活动名称")
    private String name;

    /** 教师 */
    @Excel(name = "教师")
    @ApiModelProperty("教师")
    private String teacher;

    /** 教师介绍 */
    @Excel(name = "教师介绍")
    @ApiModelProperty("教师介绍")
    private String teacherContent;

    /** 活动宣传图 */
    @Excel(name = "活动宣传图")
    @ApiModelProperty("活动宣传图")
    private String picture;

    /** 活动介绍 */
    @Excel(name = "活动介绍")
    @ApiModelProperty("活动介绍")
    private String content;

    /** 活动分类，对应数据字典k_activity_type */
    @Excel(name = "活动分类", readConverterExp = "2=比赛竞技,1=集体活动")
    @ApiModelProperty("活动分类，对应数据字典k_activity_type")
    private String activityType;


    @ApiModelProperty("业务字段---学生年龄")
    @Excel(name = "年龄段")
    private String ageApp;

    /** 年龄段 */
    @ApiModelProperty("年龄段")
    private String ageGroup;

    /** 总名额 */
    @Excel(name = "总名额")
    @ApiModelProperty("总名额")
    private Integer totalQuota;

    /** 剩余名额 */
    @Excel(name = "剩余名额")
    @ApiModelProperty("剩余名额")
    private Integer remainingQuota2;

    /** 节次 */
    @Excel(name = "节次")
    @ApiModelProperty("节次")
    private Integer section;

    /** 活动时间 */
    @Excel(name = "活动时间")
    @ApiModelProperty("活动时间")
    private String classTime;

    /** 附件 */
    @Excel(name = "附件")
    @ApiModelProperty("附件")
    private String file;

    /** 活动积分 */
    @Excel(name = "活动积分")
    @ApiModelProperty("活动积分")
    private Integer integral;

    /** 报名须知 */
    @Excel(name = "报名须知")
    @ApiModelProperty("报名须知")
    private String notice;

    /** 主键 */
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("已售名额")
    private Long sold;

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setTeacher(String teacher)
    {
        this.teacher = teacher;
    }

    public String getTeacher()
    {
        return teacher;
    }
    public void setTeacherContent(String teacherContent)
    {
        this.teacherContent = teacherContent;
    }

    public String getTeacherContent()
    {
        return teacherContent;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setActivityType(String activityType)
    {
        this.activityType = activityType;
    }

    public String getActivityType()
    {
        return activityType;
    }
    public void setAgeGroup(String ageGroup)
    {
        this.ageGroup = ageGroup;
    }

    public String getAgeGroup()
    {
        return ageGroup;
    }
    public void setTotalQuota(Integer totalQuota)
    {
        this.totalQuota = totalQuota;
    }

    public Integer getTotalQuota()
    {
        return totalQuota;
    }
    public void setRemainingQuota2(Integer remainingQuota2)
    {
        this.remainingQuota2 = remainingQuota2;
    }

    public Integer getRemainingQuota2()
    {
        return remainingQuota2;
    }
    public void setSection(Integer section)
    {
        this.section = section;
    }

    public Integer getSection()
    {
        return section;
    }
    public void setClassTime(String classTime)
    {
        this.classTime = classTime;
    }

    public String getClassTime()
    {
        return classTime;
    }
    public void setFile(String file)
    {
        this.file = file;
    }

    public String getFile()
    {
        return file;
    }
    public void setIntegral(Integer integral)
    {
        this.integral = integral;
    }

    public Integer getIntegral()
    {
        return integral;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("teacher", getTeacher())
            .append("teacherContent", getTeacherContent())
            .append("picture", getPicture())
            .append("content", getContent())
            .append("activityType", getActivityType())
            .append("ageGroup", getAgeGroup())
            .append("totalQuota", getTotalQuota())
            .append("remainingQuota2", getRemainingQuota2())
            .append("section", getSection())
            .append("classTime", getClassTime())
            .append("file", getFile())
            .append("integral", getIntegral())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
